<?php
	@session_start();
	//-------------------------------------------------------
	include("includes/secure.php");	
	include("includes/config.php");	
	include("includes/class/cliente_pila.class.php");	
	//-------------------------------------------------------

	$cliente_pila = new Cliente_pila();
	$data = $cliente_pila->getCLientePilaData($_SESSION['clip_code']);
	unset($_SESSION['bocl_code']);

?>
<style type="text/css">
	
	*{
		font-family: Arial, Helvetica, sans-serif;
	}
	
	.transparent {
		/* Required for IE 5, 6, 7 */
		/* ...or something to trigger hasLayout, like zoom: 1; */
		width: 100%; 
	
		/* Theoretically for IE 8 & 9 (more valid) */
		/* ...but not required as filter works too */
		/* should come BEFORE filter */
		-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=10)";
	
		/* This works in IE 8 & 9 too */
		/* ... but also 5, 6, 7 */
		filter: alpha(opacity=10);
	
		/* Older than Firefox 0.9 */
		-moz-opacity:0.1;
	
		/* Safari 1.x (pre WebKit!) */
		-khtml-opacity: 0.1;
	
		/* Modern!
		/* Firefox 0.9+, Safari 2?, Chrome any?
		/* Opera 9+, IE 9+ */
		opacity: 0.1;
	}
	
	.white_line{
		color: #FFF;
		font-size:12px;
	}
	
	
	.tbl_bill{
		border:1px solid rgb(109,179,242);
		box-shadow: 5px 5px 25px #000;
		-moz-box-shadow: 5px 5px 25px #000;
		-webkit-box-shadow: 5px 5px 25px #000;
	}
	
	.title_bill{
		color:#333;
		font-size:15px;
		text-align:center;
		font-weight:bold;
	}
	
	.firstUnitedServicesLLC{
		font-size:19px;
		font-weight:bold;
		color:#000;
		text-decoration:underline;	
	}
	
	.lbl_gray{
		color:#666;
		font-size:12px;
	}
	
	.lbl_gray_right{	
		color:#666;
		font-size:12px;	
		text-align:right;	
	}
	
	.lbl_black{
		color:#000;
		font-size:12px;
	}
	
	.section_bill{
		border-bottom:1px solid rgb(109,179,242);
		color: rgb(109,179,242);
		font-size: 13px;
		font-weight:bold;
	}
	
	.section_bill_top{
		border-top:1px solid rgb(109,179,242);
		color: rgb(109,179,242);
		font-size: 13px;
		font-weight:bold;
	}
	
</style>
<!--________________ __________________________________________________________________________ ________________106-->
<!--_______________-->

<table cellpadding="0" cellspacing="0">
	<tr>
    	<td colspan="3">&nbsp;</td>
    </tr>
    <tr>
	    <td class="white_line">________________</td>
        <td>
        	<table class="tbl_bill">
            	<tr>
	                <td class="white_line">________________________________________________________________________________</td>
				</tr>
                <tr>
                	<td>
                    	<table>
                            <tr>
	                            <td>&nbsp;</td>
                                <td>
                                	<table>
                                    	<tr>
                                            <td><br>ASSC Servicios y Soluciones de Colombia</td>
                                            <td class="white_line">______________________</td>
                                            <td class="lbl_black"><br>Receipt No. <?php echo $data->clip_receipt;?></td>
                                        </tr>
                                        <tr>
                                            <td class="white_line">________________________________________</td>
                                            <td></td>
                                            <td></td>
                                        </tr>
                                                                               
                                        <tr>
                                        	<td colspan="2"><?php echo $data->clip_company_name; ?></td>
                                              <td class="lbl_black" style="text-align:right">Fecha: <?php echo cambiarFormatoFecha($data->clip_date_periodo,1); ?></td>
                                        </tr>
                                        <?php if($data->clip_company_nit!='No tiene'){ ?>
                                        <tr>
                                        	<td colspan="3" class="lbl_gray">Nit : <?php echo $data->clip_company_nit; ?></td>
                                        </tr>
                                        <?php } ?>
                                        <?php if($data->clip_company_address!='No tiene'){ ?>
                                        <tr>
                                        	<td colspan="3" class="lbl_gray"><?php echo $data->clip_company_address; ?></td>
                                        </tr>
                                        <?php } ?>
                      
                        </table>
                                 
								</td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
	                            <td>&nbsp;</td>
                                <td>
                                	<table>

                                        <tr>
                                        	<td class="white_line">______________</td>
                                            <td class="white_line">_</td>
                                            <td class="white_line">_______________________________</td>
                                        </tr>
                                        <tr>
                                        	<td class="lbl_gray_right">Periodo:</td>
                                            <td>&nbsp;</td>
                                            <td class="lbl_black"><?php echo $data->clip_periodo; ?></td>
                                        </tr>
                                        <tr>
                                        	<td class="lbl_gray_right">Empleado:</td>
                                            <td>&nbsp;</td>
                                            <td class="lbl_black"><?php echo $data->clip_employed_name; ?> <?php echo $data->clip_employed_lastname; ?></td>
                                        </tr>
                                        <tr>
                                        	<td class="lbl_gray_right">Direccion:</td>
                                            <td>&nbsp;</td>
                                            <td class="lbl_black"><?php echo $data->clip_employed_address; ?></td>
                                        </tr>
                                        <tr>
                                        	<td class="lbl_gray_right">Cedula:</td>
                                            <td>&nbsp;</td>
                                            <td class="lbl_black"><?php echo $data->clip_employed_cedula; ?></td>
                                        </tr>
                                    </table>                                    
								</td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
	                            <td>&nbsp;</td>
                                <td>
                                	<table>
                                        <tr>
                                        	<td class="white_line" colspan="3">______________________________________________________________________________</td>
                                        </tr>
                                        <tr>
                                        	<td class="section_bill">CONCEPTO</td>
                                            <td class="section_bill" style="text-align:center">&nbsp;</td>
                                            <td class="section_bill" style="text-align:right">VALOR TOTAL</td>
                                        </tr>
                                        <tr>
                                        	<td class="white_line">_________________</td>
                                            <td class="white_line">_______________________________</td>
                                            <td class="white_line">____________________</td>
                                        </tr>
                                        <tr>
                                        	<td class="lbl_black" style="vertical-align:text-top">Aporte Admision</td>
                                            <td class="lbl_black" style="text-align:center; vertical-align:text-top">&nbsp;</td>
                                            <td align="right"><?php echo number_format($data->clip_value_admission,2); ?></td>
                                        </tr>
										<?php if($data->clip_name_eps!=''){ ?>
                                        <tr>
                                            <td class="lbl_black" style="vertical-align:text-top">Aporte EPS</td>
                                            <td class="lbl_black" style="text-align:center; vertical-align:text-top"><?php echo $data->clip_name_eps; ?></td>
                                            <td align="right"><?php echo number_format($data->clip_value_eps,2); ?></td>
                                        </tr>
                                        <?php } ?>
                                        <?php if($data->clip_name_arp!=''){ ?>
                                        <tr>
                                            <td class="lbl_black" style="vertical-align:text-top">Aporte ARP</td>
                                            <td class="lbl_black" style="text-align:center; vertical-align:text-top"><?php echo $data->clip_name_arp; ?></td>
                                            <td align="right"><?php echo number_format($data->clip_value_arp,2); ?></td>
                                        </tr>
                                        <?php } ?>
                                        <?php if($data->clip_name_afp!=''){ ?>
                                        <tr>
                                            <td class="lbl_black" style="vertical-align:text-top">Aporte AFP</td>
                                            <td class="lbl_black" style="text-align:center; vertical-align:text-top"><?php echo $data->clip_name_afp; ?></td>
                                            <td align="right"><?php echo number_format($data->clip_value_afp,2); ?></td>
                                        </tr>
                                        <?php } ?>
                                        <?php if($data->clip_parafiscal!=''){ ?>
                                        <tr>
                                            <td class="lbl_black" style="vertical-align:text-top">Aporte Parafiscal</td>
                                            <td class="lbl_black" style="text-align:center; vertical-align:text-top"><?php echo $data->clip_parafiscal; ?></td>
                                            <td align="right"><?php echo number_format($data->clip_value_parafiscal,2); ?></td>
                                        </tr>
                                        <?php } ?>
                                        <?php if($data->clip_poliza!=''){ ?>
                                        <tr>
                                            <td class="lbl_black" style="vertical-align:text-top">Aporte Poliza</td>
                                            <td class="lbl_black" style="text-align:center; vertical-align:text-top"><?php echo $data->clip_poliza; ?></td>
                                            <td align="right"><?php echo number_format($data->clip_value_poliza,2); ?></td>
                                        </tr>
                                        <?php } ?>
                                        <?php if($data->clip_name_seguro_vida!=''){ ?>
                                        <tr>
                                            <td class="lbl_black" style="vertical-align:text-top">Aporte Seguros</td>
                                            <td class="lbl_black" style="text-align:center; vertical-align:text-top"><?php echo $data->clip_name_seguro_vida; ?></td>
                                            <td align="right"><?php echo number_format($data->clip_value_seguro_vida,2); ?></td>
                                        </tr>
                                        <?php } ?>
                                        <?php if($data->clip_name_otros!=''){ ?>
                                        <tr>
                                            <td class="lbl_black" style="vertical-align:text-top">Aporte Otros</td>
                                            <td class="lbl_black" style="text-align:center; vertical-align:text-top"><?php echo $data->clip_name_otros; ?></td>
                                            <td align="right"><?php echo number_format($data->clip_value_otros,2); ?></td>
                                        </tr>
                                        <?php } ?>
                                        <?php if($data->clip_reingreso!=0){ ?>
                                        <tr>
                                            <td class="lbl_black" style="vertical-align:text-top">Aporte Cuota Reingreso</td>
                                            <td class="lbl_black" style="text-align:center; vertical-align:text-top">&nbsp;</td>
                                            <td align="right"><?php echo number_format($data->clip_reingreso,2); ?></td>
                                        </tr>
                                        <?php } ?>
                                        <?php if($data->clip_aporte_mutual!=0){ ?>
                                        <tr>
                                            <td class="lbl_black" style="vertical-align:text-top">Aporte Mutual</td>
                                            <td class="lbl_black" style="text-align:center; vertical-align:text-top">&nbsp;</td>
                                            <td align="right"><?php echo number_format($data->clip_aporte_mutual,2); ?></td>
                                        </tr>
                                        <?php } ?>
                                        <?php if($data->clip_admin!=0){ ?>
                                        <tr>
                                            <td class="lbl_black" style="vertical-align:text-top">Aporte Administracion</td>
                                            <td class="lbl_black" style="text-align:center; vertical-align:text-top">&nbsp;</td>
                                            <td align="right"><?php echo number_format($data->clip_admin,2); ?></td>
                                        </tr>
                                        <?php } ?>
                                        <?php if($data->clip_admin_iva!=0){ ?>
                                        <tr>
                                            <td class="lbl_black" style="vertical-align:text-top">Aporte Administracion IVA</td>
                                            <td class="lbl_black" style="text-align:center; vertical-align:text-top">&nbsp;</td>
                                            <td align="right"><?php echo number_format($data->clip_admin_iva,2); ?></td>
                                        </tr>
                                        <?php } ?>
                                        <?php if($data->clip_otros!=0){ ?>
                                        <tr>
                                            <td class="lbl_black" style="vertical-align:text-top">Aporte Otros</td>
                                            <td class="lbl_black" style="text-align:center; vertical-align:text-top">&nbsp;</td>
                                            <td align="right"><?php echo number_format($data->clip_otros,2); ?></td>
                                        </tr>
                                        <?php } ?>
                                        <?php if($data->clip_funeral!=0){ ?>
                                        <tr>
                                            <td class="lbl_black" style="vertical-align:text-top">Aporte Servicios Funerarios</td>
                                            <td class="lbl_black" style="text-align:center; vertical-align:text-top">&nbsp;</td>
                                            <td align="right"><?php echo number_format($data->clip_funeral,2); ?></td>
                                        </tr>
                                        <?php } ?>
                                        <?php if($data->clip_ajuste!=0){ ?>
                                        <tr>
                                            <td class="lbl_black" style="vertical-align:text-top">Ajustes</td>
                                            <td class="lbl_black" style="text-align:center; vertical-align:text-top">&nbsp;</td>
                                            <td align="right"><?php echo number_format($data->clip_ajuste,2); ?></td>
                                        </tr>
                                        <?php } ?>
                                        <?php if($data->clip_interes_mora!=0){ ?>
                                        <tr>
                                            <td class="lbl_black" style="vertical-align:text-top">Aporte Intereses Mora</td>
                                            <td class="lbl_black" style="text-align:center; vertical-align:text-top">&nbsp;</td>
                                            <td align="right"><?php echo number_format($data->clip_interes_mora,2); ?></td>
                                        </tr>
                                        <?php } ?>
                                        <?php if($data->clip_descuentos!=0){ ?>
                                        <tr>
                                            <td class="lbl_black" style="vertical-align:text-top">Descuentos</td>
                                            <td class="lbl_black" style="text-align:center; vertical-align:text-top">&nbsp;</td>
                                            <td align="right"><?php echo number_format($data->clip_descuentos,2); ?></td>
                                        </tr>
                                        <?php } ?>
                                        <tr>
                                        <td class="section_bill"></td>
                                        <td class="section_bill"></td>
                                        <td class="section_bill"></td>
                                        </tr>
                                        <tr>
                                        	<td class="section_bill">TOTAL</td>
                                            <td class="section_bill" style="text-align:center">&nbsp;</td>
                                            <td class="section_bill" style="text-align:right"><?php echo number_format($data->clip_total,2); ?></td>
                                        </tr>
                                        <tr>
                                        	<td colspan="3">SON : <?php echo $data->clip_letras; ?> Pesos.</td>

                                        </tr>
                                        <tr>
                                        	<td colspan="3">Recibido por : <?php echo $data->clip_recibido;?></td>

                                        </tr>
                                    
                                    </table>                                    
								</td>
                                <td>&nbsp;</td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="section_bill_top" style="text-align:center">www.assc.com</td>
                </tr>
            </table>
        </td>
        <td class="white_line"></td>
    </tr>        
</table>
